<#list conversationIdMapStackKey.entrySet() as entry>
<input type="hidden" name="${entry.key}" value="${entry.value}"/>
</#list>

</form>

<#if (parameters.customOnsubmitEnabled?if_exists)>
<script type="text/javascript">
    <#--
      Enable auto-select of optiontransferselect tag's entries upon containing form's
      submission.
    -->
        <#if (parameters.optiontransferselectIds?if_exists?size > 0)>
        var containingForm = document.getElementById("${parameters.id}");
            <#assign selectObjIds = parameters.optiontransferselectIds.keySet() />
            <#list selectObjIds as selectObjectId>
            StrutsUtils.addEventListener(containingForm, "submit",
                    function (evt) {
                        var selectObj = document.getElementById("${selectObjectId}");
                        <#if parameters.optiontransferselectIds.get(selectObjectId)??>
                            <#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/>
                            selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
                        <#else>
                            selectAllOptionsExceptSome(selectObj, "key", "");
                        </#if>
                    }, true);
            </#list>
        </#if>
        <#if (parameters.inputtransferselectIds?if_exists?size > 0)>
        var containingForm = document.getElementById("${parameters.id}");
            <#assign selectObjIds = parameters.inputtransferselectIds.keySet() />
            <#list selectObjIds as selectObjectId>
            StrutsUtils.addEventListener(containingForm, "submit",
                    function (evt) {
                        var selectObj = document.getElementById("${selectObjectId}");
                        <#if parameters.inputtransferselectIds.get(selectObjectId)??>
                            <#assign selectTagHeaderKey = parameters.inputtransferselectIds.get(selectObjectId)/>
                            selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
                        <#else>
                            selectAllOptionsExceptSome(selectObj, "key", "");
                        </#if>
                    }, true);
            </#list>
        </#if>
        <#if (parameters.optiontransferselectDoubleIds?if_exists?size > 0)>
        var containingForm = document.getElementById("${parameters.id}");
            <#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() />
            <#list selectDoubleObjIds as selectObjId>
            StrutsUtils.addEventListener(containingForm, "submit",
                    function (evt) {
                        var selectObj = document.getElementById("${selectObjId}");
                        <#if parameters.optiontransferselectDoubleIds.get(selectObjId)??>
                            <#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/>
                            selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
                        <#else>
                            selectAllOptionsExceptSome(selectObj, "key", "");
                        </#if>
                    }, true);
            </#list>
        </#if>


    <#--
        Enable auto-select of all elements of updownselect tag upon its containing form
        submission
    -->
        <#if (parameters.updownselectIds?if_exists?size > 0)>
        var containingForm = document.getElementById("${parameters.id}");
            <#assign tmpIds = parameters.updownselectIds.keySet() />
            <#list tmpIds as tmpId>
            StrutsUtils.addEventListener(containingForm, "submit",
                    function (evt) {
                        var updownselectObj = document.getElementById("${tmpId}");
                        <#if parameters.updownselectIds.get(tmpId)??>
                            <#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) />
                            selectAllOptionsExceptSome(updownselectObj, "key", "${tmpHeaderKey}");
                        <#else>
                            selectAllOptionsExceptSome(updownselectObj, "key", "");
                        </#if>
                    }, true);
            </#list>
        </#if>
</script>
</#if>


<#-- 
 Code that will add javascript needed for tooltips
--><#t/>
<#if (parameters.hasTooltip?default(false))><#t/>
    <#lt/><!-- javascript that is needed for tooltips -->
    <#lt/>
<script type="text/javascript" src='<@s.url value="/struts/domTT.js" includeParams="none" encode="false" />'></script>
    <#lt/>
<link rel="stylesheet" type="text/css" href="<@s.url value="/struts/domTT.css" includeParams="none" encode="false" />"/>

</#if><#t/>